package com.chen.fegin;

import com.chen.config.auth.OAuth2FeignConfig;
import com.chen.dto.MarketDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: chen
 * @Date: 2021/5/18 2:34 PM
 * @Version 1.0
 */
@FeignClient(value = "exchange-server",
        configuration = OAuth2FeignConfig.class,
        path = "/markets")
public interface MarketFegin {

    @GetMapping("/getMarketBySymbol")
    MarketDto getMarketBySymbol(@RequestParam("symbol") String symbol);

    @GetMapping("/getMarketBySymbols")
    List<MarketDto> getMarketBySymbols(@RequestParam("symbol") List<String> symbol);

}
